package com.homestay.service;

import com.homestay.beans.Vip;
import com.homestay.exception.UserException;

import java.util.List;

public interface VipService {
    int add(Vip vip) throws UserException;

    List<Vip> queryByPhone(String phone);

    int deleteById(String id) throws UserException;

    Vip queryById(String id);

    int update(Vip vip);

    // 根据姓名、省份证号、手机号查询会员
    List<Vip> query(String name, String card, String phone);
}
